package com.example.b_308.myapplication.model;

import com.example.b_308.myapplication.model.base.BaseModel;

/**
 * Created by B-308 on 2017/11/22.
 */
public class Staff extends BaseModel {
    public static final String USER_TAG = "user";
    String id;
    String name;
    String job;
    String phone;

    public Staff(String json) {
        super(json);
    }

    public Staff( String name, String job) {
        this.name = name;
        this.job = job;
    }

    public Staff() {
    }

    public void setId(String id) {
        put("id", id);
        this.id = id;
    }

    public void setPhone(String phone) {
        put("phone", phone);
        this.phone = phone;
    }

    public void setName(String name) {
        put("name", name);
        this.name = name;
    }

    public void setJob(String job) {
        put("job", job);
        this.job = job;
    }


    public String getJob() {
        if (null == job) {
            job = getStr("job");
        }
        return job;
    }

    public String getPhone() {
        if (null == phone) {
            phone = getStr("phone");
        }
        return phone;
    }

    public String getName() {
        if (null == name) {
            name = getStr("name");
        }
        return name;
    }

    public String getId() {
        if (null == id) {
            id = getStr("id");
        }
        return id;
    }
}
